import service from '@/utils/request'

// @Tags QmAccessTokens
// @Summary 创建qmAccessTokens表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmAccessTokens true "创建qmAccessTokens表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /qmAccessTokens/createQmAccessTokens [post]
export const createQmAccessTokens = (data) => {
  return service({
    url: '/qmAccessTokens/createQmAccessTokens',
    method: 'post',
    data
  })
}

// @Tags QmAccessTokens
// @Summary 删除qmAccessTokens表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmAccessTokens true "删除qmAccessTokens表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmAccessTokens/deleteQmAccessTokens [delete]
export const deleteQmAccessTokens = (params) => {
  return service({
    url: '/qmAccessTokens/deleteQmAccessTokens',
    method: 'delete',
    params
  })
}

// @Tags QmAccessTokens
// @Summary 批量删除qmAccessTokens表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除qmAccessTokens表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmAccessTokens/deleteQmAccessTokens [delete]
export const deleteQmAccessTokensByIds = (params) => {
  return service({
    url: '/qmAccessTokens/deleteQmAccessTokensByIds',
    method: 'delete',
    params
  })
}

// @Tags QmAccessTokens
// @Summary 更新qmAccessTokens表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmAccessTokens true "更新qmAccessTokens表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /qmAccessTokens/updateQmAccessTokens [put]
export const updateQmAccessTokens = (data) => {
  return service({
    url: '/qmAccessTokens/updateQmAccessTokens',
    method: 'put',
    data
  })
}

// @Tags QmAccessTokens
// @Summary 用id查询qmAccessTokens表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.QmAccessTokens true "用id查询qmAccessTokens表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /qmAccessTokens/findQmAccessTokens [get]
export const findQmAccessTokens = (params) => {
  return service({
    url: '/qmAccessTokens/findQmAccessTokens',
    method: 'get',
    params
  })
}

// @Tags QmAccessTokens
// @Summary 分页获取qmAccessTokens表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取qmAccessTokens表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /qmAccessTokens/getQmAccessTokensList [get]
export const getQmAccessTokensList = (params) => {
  return service({
    url: '/qmAccessTokens/getQmAccessTokensList',
    method: 'get',
    params
  })
}

export const getHugeInfo = (params) => {
  return service({
    donNotShowLoading: true,
    url: '/qmAccessTokens/getInfo',
    method: 'post',
    params
  })
}

export const getUserPlatform = (params) => {
  return service({
    url: '/qmAccessTokens/getUserPlatform',
    method: 'post',
    params
  })
}

export const getAccountData = (params) => {
  return service({
    url: '/qmAccessTokens/getAccountData',
    method: 'post',
    params
  })
}
